import request from '@/utils/request'

/*
  获取部门的负责人
  @returs
*/

export function getEmployeeSimpless() {
  return request({
    url: '/sys/user/simple'

  })
}

// 获取员工列表

export function getEmployees(page, size) {
  return request({
    url: '/sys/user',
    params: { page: page, size: size }
  })
}

// 新增员工
export function addEmployees(data) {
  return request({
    method: 'post',
    url: '/sys/user',
    data
  })
}

// 删除员工
export function delEmployees(id) {
  return request({
    method: 'delete',
    url: `/sys/user/${id}`

  })
}

// 批量导入
export function addEmployeesBach(data) {
  return request({
    method: 'post',
    url: `/sys/user/batch`,
    data

  })
}
